<template>
  <transition name="pop">
    <div class="customPop" @click="cancelFn">
      <div class="customPopCon scrollbar" @click.stop>
        <el-row>
          <el-col :span="10">项目名称</el-col>
          <el-col :span="14">asdad奥术大师大所多</el-col>
        </el-row>
        <el-row>
          <el-col :span="10">预计开发时间</el-col>
          <el-col :span="14">2020-10-20 至 2020-11-10</el-col>
        </el-row>
        <el-row>
          <el-col :span="10">实际开发时间</el-col>
          <el-col :span="14">2020-10-20 至 2020-11-10</el-col>
        </el-row>
        <el-row>
          <el-col :span="10">项目所属</el-col>
          <el-col :span="14">灵活就业服务</el-col>
        </el-row>
        <el-row>
          <el-col :span="10">项目类型</el-col>
          <el-col :span="14">新增</el-col>
        </el-row>
        <el-row>
          <el-col :span="10">项目等级</el-col>
          <el-col :span="14">着急</el-col>
        </el-row>
        <el-row>
          <el-col :span="10">项目描述</el-col>
          <el-col
            :span="14"
          >这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述这是一段没有感情的应付性描述</el-col>
        </el-row>
        <el-row>
          <el-col :span="10">相关材料</el-col>
          <el-col :span="14">
            <div>asdasdasd.xls</div>
            <div>asdasdasd.xls</div>
            <div>asdasdasd.xls</div>
            <div>asdasdasd.xls</div>
          </el-col>
        </el-row>

        <el-row style="text-align:center">
          <el-button type="primary" icon="el-icon-check" @click="adopt">审核通过</el-button>
          <el-button type="danger" icon="el-icon-close" @click="reject">审核驳回</el-button>
        </el-row>
      </div>
    </div>
  </transition>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    cancelFn() {
      this.$parent.show = false;
    },
    // 审核通过
    adopt() {
      this.$confirm("是否审核通过该需求?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      })
        .then(() => {
          console.log('确定');
        })
        .catch(() => {
          console.log('取消');

        });
    },
    // 审核驳回
    reject() {
      this.$prompt('请输入驳回原因', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          inputValidator(val){
           if(!val){
             return '驳回原因不能为空'
           }
           return true;
          }
        }).then(({ value }) => {
          console.log(value)
        }).catch(() => {
           console.log('取消')
        });
    }
  }
};
</script>

<style lang="scss" scoped>
@import "~assets/scss/var.scss";
.customPop {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.7);
  .customPopCon {
    background-color: #ffffff;
    padding: 20px 100px;
    margin: 20px auto;
    border-radius: 4px;
    box-sizing: border-box;
    width: 60%;
    // height: auto;
    height: calc(100% - 40px);
    overflow: hidden;
    overflow-y: auto;
    .el-row {
      margin: 40px 0;
    }
    .el-col-10 {
      text-align: right;
      font-size: 16px;
      color: #606266;
      padding-right: 10px;
      box-sizing: border-box;
    }
    .el-col-14 {
      text-align: left;
      font-size: 16px;
      color: #409eff;
      line-height: 1.5;
    }
  }
}
</style>
